<?php

declare(strict_types=1);

namespace App\Game\Model;

use App\Fastapp\Model\FileTrait;
use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $level 等级
 * @property string $icon
 * @property string $amount 达标
 * @property string $refunded 奖励
 * @property string $week 周奖励
 * @property string $month 月奖励
 * @property string $day_total 日提现总额
 * @property string $day_limit 日提现限额
 * @property string $charge 手续比例
 */
class GameVip extends MineModel
{
    use FileTrait;

    public bool $timestamps = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'game_vip';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'level', 'icon', 'amount', 'refunded', 'week', 'month', 'day_total', 'day_limit', 'charge'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'level' => 'integer', 'amount' => 'decimal:2', 'refunded' => 'decimal:2', 'week' => 'decimal:2', 'month' => 'decimal:2', 'day_total' => 'decimal:2', 'day_limit' => 'decimal:2', 'charge' => 'decimal:2'];
}
